<?php 

	
	class TrocarUrl{
	
		private $includeUrl;
		
		public function __construct($url){
			
			if(!empty($url) && file_exists("views/".$url.".php")){
				
				$this->includeUrl = require_once("views/".$url.".php");
			}
			else{
					
				$this->includeUrl = require_once("views/inicio.php");		
			}
			
			return $this->includeUrl;
		}
	}
?>